package com.changanw.spring_spred.controller;

import com.changanw.spring_spred.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: changanw
 * @createTime:2021/12/20 12:49
 */
@RestController
public class HelloController {
  @Autowired
  UserService userService;

  @GetMapping("/hello")
  public String hello(){
    userService.transfer();
    return "hello transfer";
  }
}
